import java.util.Arrays;
import java.util.Scanner;

public class Test {
    public static int add(int[][] arr) {
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr[i].length; j++) {
                sum += arr[i][j];
            }
        }
        return sum;
    }

    public static void main(String[] args) {
        int[][]  arr = { {11,33,55},{22,44,66,88},{131,214,315,146},{928,827,726,625},{424,525} };
        int sum = add(arr);
        System.out.println(sum);
    }

    public static void main3(String[] args) {
        int[] arr = new int[6];
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < arr.length; i++) {
            arr[i] = scanner.nextInt();
        }
        System.out.println(Arrays.toString(arr));
        //倒置
        int tmp = 0;
        int left = 0;
        int right = arr.length - 1;
        while (left <= right) {
            tmp = arr[left];
            arr[left] = arr[right];
            arr[right] = tmp;
            left++;
            right--;
        }
        System.out.println(Arrays.toString(arr));
    }

    public static void main2(String[] args) {
        int[] ary = new int[6];
        Scanner input = new Scanner(System.in);
        for (int i = 0; i <ary.length ; i++) {
            ary[i]=input.nextInt();
        }
        int max = ary[0];
        int min = ary[0];
        //求最大值与最小值
        for (int i = 0; i < ary.length; i++) {
            if (ary[i] >= max) {
                max = ary[i];
            }
            if (ary[i] <= min) {
                min = ary[i];
            }
        }

        System.out.println(max+" "+min);
    }

    public static void main1(String[] args) {
        int[] ary = new int[6];
        Scanner input = new Scanner(System.in);
        for (int i = 0; i <ary.length ; i++) {
            ary[i]=input.nextInt();
        }
        int max = ary[0];
        int min = ary.length;
        //求最大值与最小值
        for (int i = 0; i < ary.length; i++) {
            if (ary[i] > max) {
                max = ary[i];
            }
            if (ary[i] < min) {
                min = ary[i];
            }
        }

        System.out.println(max+" "+min);
    }
}
